/**
 * API - 角色与权限关联
 *
 * @author wangxiang 2020-05-14
 */
import request from '@/utils/request'

const API = '/api'

// 获取菜单权限为角色
export function queryResIdListByRoleId(queryObj) {
  return request({
    url: API + '/v1/sys/roleandresource/queryResIdListByRoleId',
    method: 'post',
    data: queryObj
  })
}

// 保存角色和菜单权限关系
export function updateSysRightsRoleResource(queryObj) {
  return request({
    url: API + '/v1/sys/roleandresource/updateSysRightsRoleResource',
    method: 'post',
    data: queryObj
  })
}
